//test for council room card

#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

#define DEBUG 0
#define NOISY_TEST 1

int main () {

  int r;
  
  int pos = 1;
  int k[10] = {adventurer, council_room, feast, gardens, mine,
	       remodel, smithy, village, baron, great_hall};
  int bonus = 0;
        
  struct gameState G;
  
  r = initializeGame(2, k, 1, &G);

 
  puts("\n\n********* TESTING COUNCIL ROOM ************\n");
  printf ("initializeGame(2, k, 1, &G) = %d\n", r);
  assert(r == 0);
  
  int count = numHandCards(&G);
  printf("u player %d\n", whoseTurn(&G) );
  printf("count before: %d\n", count );
  cardEffect(council_room,0,0,0,&G,pos,&bonus);
 printf("count after: %d\n", numHandCards(&G) );
  

  if (numHandCards(&G) == count + 3){
    printf("council_room card: PASS\n");
  }else {
    printf("council_room card: FAIL\n");
  }

  



  
  return 0;
}
